<!DOCTYPE html>
<meta charset="utf-8">
<script src="support/variant-class.js"></script>
<style>
@font-face {
  font-family: halt-font;
  src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
}
#container {
  font-family: halt-font;
  font-size: 20px;
  inline-size: 4em;
  text-spacing-trim: space-all;
}
.vrl {
  writing-mode: vertical-rl;
}
halt {
  font-feature-settings: 'halt' 1, 'vhal' 1;
}
.trim-start {
  ps, ls { font-feature-settings: 'halt' 1, 'vhal' 1; }
}
.space-first {
  ls { font-feature-settings: 'halt' 1, 'vhal' 1; }
}
</style>
<div id="container">
  <div><ps>（</ps>国国国<ls>（</ls>国国国<ls>（</ls>国</div>
  <div>国国国）<ls>（</ls>国国）<ls>（</ls>国</div>
  <div>国国国国<ls>（</ls></div>
  <div lang="zh-hans">国国国国<ls>“</ls></div>

  <div><ps>（</ps>国国国<br><ps>（</ps>国国国<br><ps>（</ps>国</div>
  <div>国国国国<br><ps>（</ps></div>
  <div lang="zh-hans">国国国国<br><ps>“</ps></div>
</div>
